package cn.patient.pp.module.knowledge.controller.admin.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDate;

/**
 * @author liqingsong
 * @version 1.0
 * Create by 2025/4/14
 */
@Schema(description = "管理后台 - 知识库新增/修改 Request VO")
@Data
public class KnowledgeBaseSaveReqVO {
    @Schema(description = "主键")
    private Integer id;

    @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @NotEmpty(message = "名称不能为空")
    private String name;

    @Schema(description = "编号")
    private String number;

    @Schema(description = "文本附件url")
    @NotEmpty(message = "文本附件url不能为空")
    private String textAttachmentUrl;

    @Schema(description = "备注")
    private String remarks;

    @Schema(description = "发布日期")
    private String publishDate;

    @Schema(description = "执行日期")
    private String execDate;

    @Schema(description = "废止日期")
    private String abortDate;
}
